import { FC } from "react"

import TimeRange from "../timeRange"

const StartEndRange: FC<any> = ({ setFieldValue, defaultValue }) => {
	return (
		<TimeRange
			setFieldValue={setFieldValue}
			noLabel={true}
			fieldName="startEndTime"
			startFieldName="startDate"
			endFieldName="endDate"
			format="YYYY-MM-DD"
			defaultValue={defaultValue}
		/>
	)
}

export default StartEndRange
